<extend name="Common:main" />
<block name="cssjs">
</block>
<block name="content">
<div class="box box-default">
	<div class="box-body">
		<form id="form_user" method="post" ajax-submit="true" role="form" action="{:U('Admin/User/add')}">
		   	<div class="form-group">
		       	<label>{$Think.lang.user_groupid}</label>
				<select name="groupid" class="form-control">
		       	<foreach name="subGroupList" item="group">
		           	<option value="{$group['id']}">{$group['name']}</option>
		       	</foreach>
		        </select>
			</div>
		    <div class="form-group">
		        <label>{$Think.lang.user_username}</label>
		        <input type="text" name="username" class="form-control" value="{$user['username']}">
		    </div>
		    <div class="form-group">
		        <label>{$Think.lang.user_password}</label>
		        <input type="password" name="password" class="form-control" value="{$user['password']}">
		    </div>
		    <div class="form-group">
		        <label>{$Think.lang.user_repassword}</label>
		        <input type="password" name="repassword" class="form-control" value="">
		    </div>
		    <div class="form-group">
		        <label>{$Think.lang.user_email}</label>
		        <input type="text" name="email" class="form-control" value="{$user['email']}">
		        <p class="help-block">{$Think.lang.user_email_tips}</p>
		    </div>
		   	<div class="form-group">
				<button type="submit" class="btn btn-primary btn-block">{$Think.lang.submit}</button>
			</div>
		</form>
	</div>
</div>
</block>